Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 4 - Speech Manager / Speech Manager Reference
Speech Manager Routines / Changing Speech Attributes


GetSpeechRate

You use the GetSpeechRate function to obtain a speech channel's current speech rate.

FUNCTION GetSpeechRate (chan: SpeechChannel; VAR rate: Fixed)
                        : OSErr;
chan
The speech channel whose rate you wish to determine.
rate
On exit, the speech channel's speech rate, expressed as a fixed-point, words-per-minute value.
DESCRIPTION
The GetSpeechRate function returns, in the rate parameter, the speech rate of the speech channel specified by the chan parameter.

SPECIAL CONSIDERATIONS
You can call the GetSpeechRate function at interrupt time.

ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for the GetSpeechRate function are
Trap macroSelector
_SoundDispatch$0448000C

RESULT CODES
noErr0No error
invalidComponentID-3000Speech channel is uninitialized or bad

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996